/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bean;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author fernando
 */
public class Coordenacao implements Serializable{

    public Coordenacao(){
        this.coordenador = new Autor();
    }
    
    public Autor getCoordenador() {
        return coordenador;
    }

    public void setCoordenador(Autor coordenador) {
        this.coordenador = coordenador;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Date getDataInicio() {
        return dataInicio;
    }

    public void setDataInicio(Date dataInicio) {
        this.dataInicio = dataInicio;
    }

    public Date getDataFim() {
        return dataFim;
    }

    public void setDataFim(Date dataFim) {
        this.dataFim = dataFim;
    }

    public String getExperiencia() {
        return experiencia;
    }

    public void setExperiencia(String experiencia) {
        this.experiencia = experiencia;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 53 * hash + (this.coordenador != null ? this.coordenador.hashCode() : 0);
        hash = 53 * hash + (this.dataInicio != null ? this.dataInicio.hashCode() : 0);
        hash = 53 * hash + (this.dataFim != null ? this.dataFim.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Coordenacao other = (Coordenacao) obj;
        if (this.coordenador != other.coordenador && (this.coordenador == null || !this.coordenador.equals(other.coordenador))) {
            return false;
        }
        if (this.dataInicio != other.dataInicio && (this.dataInicio == null || !this.dataInicio.equals(other.dataInicio))) {
            return false;
        }
        if (this.dataFim != other.dataFim && (this.dataFim == null || !this.dataFim.equals(other.dataFim))) {
            return false;
        }
        return true;
    }
    
    
    
    private Autor coordenador;
    private int id;
    private Date dataInicio;
    private Date dataFim;
    private String experiencia;
}
